package net.maku.other.model;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @Author: qr
 * @Date: 2025/3/27 22:46
 * @Version 1.0
 */
@Data
@TableName(value = "chairman_mailbox", autoResultMap = true)
public class ChairmanMailboxEntity {

    /**
     * id
     */
    @TableId
    private Long id;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 工会id
     */
    @TableField(value = "org_id")
    private Long orgId;

    /**
     * 附件地址
     */
    @TableField(value = "user_id", typeHandler = JacksonTypeHandler.class)
    private List<String> fileUrl;

    /**
     * 联系方式
     */
    @TableField(value = "phone")
    private String phone;

    /**
     * 信件内容
     */
    @TableField(value = "mailbox_contents")
    private String mailboxContents;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

}
